<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>元素显示模式的转换</title>
    <style>
        a {
            width: 200px;
            height: 50px;
            /* 把a转换为块级元素 */
            display: block;
            background-color: skyblue;
        }
        div{
            /* 把块级元素转换为行内元素 */
            display: inline;
            background-color: red;
        }
        span{
            background-color: #000;
            color: #fff;
            width: 200px;
            height: 50px;
            /* 把行内元素改为行内块元素 */
             display: inline-block;
        }
    </style>
</head>
<body>
    <a href="#">链接</a>
    <a href="#">链接</a>
    <div>123</div>
    <div>123</div>
    <span>111</span>
    <span>222</span>
</body>
</html>